package com.hanamaki.oop.demo02;

//在一个项目中 只会有一个启动类
public class Application {

    public static void main(String[] args) {

//        实例化需要的类
        Student xh = new Student();
        xh.name = "小红";
        xh.age = 33;
        xh.sex = '女';
        System.out.println(xh.name);
        System.out.println(xh.age);
        System.out.println(xh.sex);
        xh.sayHello(xh.name);

        Student xm = new Student();
        xm.name = "小明";
        xm.age = 33;
        xm.sex = '男';
        System.out.println(xm.name);
        System.out.println(xm.age);
        System.out.println(xm.sex);
        xm.sayHello(xm.name);


//       想要使用  Tourist 游人类中的方法或者 属性  就要实例化  Tourist 类
        Tourist zs = new Tourist();
        zs.name = "张三";
        zs.age = 12;
        zs.isMoney();

        Tourist ls = new Tourist();
        ls.name = "李四";
        ls.age = 59;
        ls.isMoney();

        Integral ww = new Integral();
        ww.cardScore = 101;
        ww.cardType = "金卡";
        ww.isTrue();

    }
}
